package com.bsoft.gol.hbs.bbpmessagel.notification.bean;


import com.bsoft.gol.hbs.bbpmessagel.notification.event.NotificationEvent.NotificateType;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Created by yangyi on 2017/8/28.
 */
public class Alert implements Serializable {
    private String title;
    private String content;
    private String affairType;
    private String sound;
    private byte operationable;
    private long businessKey;
    private String typeCode;
    private NotificateType notificateType;
    private Map<String, String> extras;
    private List<String> tenantIds;

    public Alert(String title, String content, NotificateType notificateType, Map<String, String> extras) {
        this.title = title;
        this.content = content;
        this.notificateType = notificateType;
        this.extras = extras;
        this.operationable = notificateType.isOperationable();
    }
    public Alert(String title, String content,Map<String, String> extras) {
        this.title = title;
        this.content = content;
        this.notificateType = notificateType;
        this.extras = extras;
        this.operationable = notificateType.isOperationable();
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public NotificateType getNotificateType() {
        return notificateType;
    }

    public void setNotificateType(NotificateType notificateType) {
        this.notificateType = notificateType;
    }

    public Map<String, String> getExtras() {
        return extras;
    }

    public void setExtras(Map<String, String> extras) {
        this.extras = extras;
    }

    public String getAffairType() {
        return affairType;
    }

    public void setAffairType(String affairType) {
        this.affairType = affairType;
    }

    public long getBusinessKey() {
        return businessKey;
    }

    public void setBusinessKey(long businessKey) {
        this.businessKey = businessKey;
    }

    public byte getOperationable() {
        return operationable;
    }

    public void setOperationable(byte operationable) {
        this.operationable = operationable;
    }

    public String getSound() {
        return sound;
    }

    public void setSound(String sound) {
        this.sound = sound;
    }

    public List<String> getTenantIds() {
        return tenantIds;
    }

    public void setTenantIds(List<String> tenantIds) {
        this.tenantIds = tenantIds;
    }
}
